package com.example.wifi_direct.ui.main.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import com.example.wifi_direct.R

class UserFragment : Fragment() {

    private lateinit var login : Button   //登录
    private lateinit var SignIn : Button  //签到
    private lateinit var publish : Button //发布文章


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view = inflater.inflate(R.layout.fragment_user,container,false)
        login = view.findViewById(R.id.button)
        SignIn = view.findViewById(R.id.SignIn)
        publish = view.findViewById(R.id.publish)
        return view
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)

        login.setOnClickListener {

        }
        SignIn.setOnClickListener {

        }
        publish.setOnClickListener{

        }

    }
}

